package com.zretc.service.impl;

import com.zretc.dao.UserMapper;
import com.zretc.pojo.User;
import com.zretc.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class UserServiceImpl implements UserService {
    @Autowired
    private UserMapper Usermapper;
    /**
     * 登录的方法
     *
     * @param user
     * @return
     */
    @Override
    public User login(User user) {
        // 查询用户信息
        return Usermapper.login(user);
    }
}
